package com.lcm.oj.lanqiao.year2021.moni.c3;

import java.util.Scanner;

/**
 * @author Coder-lcm
 * @date 2021/4/17
 */
public class T6 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String num = sc.nextLine();
        int len = num.length();
        int start = len % 3 == 0 ? 3 : len % 3;
        StringBuilder sb = new StringBuilder();
        sb.append(num.substring(0, start));
        System.out.println(start);
        while (start + 3 <= len ){
            sb.append(",");
            sb.append(num.substring(start, start+3));
            start += 3;
        }
        System.out.println(sb.toString());
    }
}
